package com.yswy.domain.vo.gld.addOrUpate;

import com.baomidou.mybatisplus.annotation.TableField;
import com.yswy.domain.vo.gld.addOrUpate.base.BaseReqVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author 19401
 * @date 2022/6/6 17:09
 **/
@Data
public class AppProjectAddOrUpdate extends BaseReqVO {
    @NotNull(message = "ID不能为空", groups = {UPDATE.class , DElECT.class})
    private Long id;
    @ApiModelProperty("项目名字")
    @NotEmpty(message = "项目名字不能为空", groups = {CREATE.class})
    private String projectName ;
    @ApiModelProperty("服务器ip")
    @NotEmpty(message = "服务器ip不能为空", groups = {CREATE.class})
    private String serverIp;
    @ApiModelProperty("域名")
    @NotEmpty(message = "域名不能为空", groups = {CREATE.class})
    private String domainName;
    @ApiModelProperty("软著Id")
    @NotNull(message = "软著Id不能为空", groups = {CREATE.class})
    private Long softnessId;
    @ApiModelProperty("官网")
    @NotEmpty(message = "官网不能为空", groups = {CREATE.class})
    private String officialWebsite;
    @ApiModelProperty("redis地址")
    @NotEmpty(message = "redis地址不能为空", groups = {CREATE.class})
    private String redisAddress;
    @ApiModelProperty("数据库地址")
    @NotEmpty(message = "数据库地址不能为空", groups = {CREATE.class})
    private String databaseAddress;
    @ApiModelProperty("投放（上架）平台")
    @NotEmpty(message = "投放（上架）平台 不能为空", groups = {CREATE.class})
    private String tfPlatform;
    @ApiModelProperty("使用用户")
    private List<Long> userIds;
}
